package com.hl.sfzy.controller.wxwappController;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hl.sfzy.entity.wxwapp.IntelligentLife;
import com.hl.sfzy.service.wxwappService.IntelligentLifeService;
import com.hl.sfzy.utils.R;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: IntelligentLifeController
 * @author: WXW
 * @date: 2024/9/6 15:21
 * @Version: 1.0
 * @description:
 */
@RestController
@RequestMapping("/intelligentLife")
public class IntelligentLifeController {
    @Autowired
    private IntelligentLifeService intelligentLifeService;

    @GetMapping("/findAll")
    public R selectAll(){
        List<IntelligentLife> intelligentLives = intelligentLifeService.selectAll();
        return R.success(intelligentLives);
    }

    //根据擅长领域查询课程
    @GetMapping("/selectByExcel")
    public R selectByExcel(String excel){
        List<IntelligentLife> intelligentLives = intelligentLifeService.selectBySpecialty(excel);
        return R.success(intelligentLives);
    };
}
